//
//  DataPointInTime+create.m
//  eyr
//
//  Created by Tor Gjøsæter on 4/25/12.
//  Copyright (c) 2012 University of Bergen. All rights reserved.
//

#import "DataPointInTime+create.h"

@implementation DataPointInTime (create)

+ (DataPointInTime *)createDataPointInTime:(NSDate *) date
                       withPressure:(NSNumber *) value
          inManagedObjectContext:(NSManagedObjectContext * ) context{
  
    DataPointInTime *data = nil;
        
    data = [NSEntityDescription insertNewObjectForEntityForName:@"DataPointInTime" inManagedObjectContext:context];
    data.date = date;
    data.pressure = value;
    
    return data;
}

@end
